package com.mianyang.zhangsan.common.util;

/**
 * @author jiangjr
 * @date 2022-10-23
 */
public class StringUtils {

    public static boolean isNull(String str) {
        return str == null;
    }

    public static boolean isEmpty(String str) {
        if (isNull(str)) {
            return true;
        }
        return "".equals(str.trim());
    }

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }
}
